home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / modal-dialog-sample ƒ / Dlog.h < prev    next >
Text File  |  1991-10-26  |  634b  |  42 lines

  1. /*
  2. **    Project    dialog example
  3. **    Module    Dlog.h
  4. **    Author    Bernie Wieser ©1991
  5. **    Date    10/26/91
  6. **
  7. **    Purpose
  8. **        Headers for the dialog code.
  9. **
  10. */
  11.  
  12. /*
  13. **    The control list (only what is used)
  14. */
  15. enum myControls {
  16.     BOKAY = 1,
  17.     BCANCEL,
  18.     BSAVE,
  19.     ETEXTFLD,
  20.     ENUMFLD,
  21.     END
  22.     };
  23.  
  24. /*
  25. **    Easy access control handle array
  26. */
  27. typedef struct {
  28.     Handle    harray[END];
  29.     } myData, *pMyData;
  30.     
  31. /*
  32. ** Protos.
  33. */
  34. void GetDHandle(        /* get a handle for a dialog control */
  35.     DialogPtr    dp,        /* the dialog */
  36.     short        item,    /* the control */
  37.     Handle        *handy    /* its return handle */
  38.     );
  39.  
  40. void DialogTest(        /* Main code */
  41.     short    dlogid        /* Dialog to drive */
  42.     );